package controlador;

import java.util.Collection;

import modelo.Diagnostico;
import modelo.FormularioSolicitudEstudio;
import modelo.Informe;
import modelo.Observacion;
import modelo.Sintoma;
import modelo.Usuario;
import data_access.DiagnosticosManager;
import data_access.FormulariosManager;
import data_access.InformesManager;
import data_access.ObservacionesManager;
import data_access.SintomasManager;
import data_access.UsuariosManager;

public class Gateway
{
	public static Collection<Sintoma> getAllSintomas()
	{
		return SintomasManager.getAll();
	}

	public static Collection<Diagnostico> getAllDiagnosticos()
	{
		return DiagnosticosManager.getAll();
	}

	public static Usuario getUsuarioByNombre(String username)
	{
		return UsuariosManager.getByUsername(username);
	}

	public static FormularioSolicitudEstudio getFormularioByNro(int nro)
	{
		return FormulariosManager.getById(nro);
	}

	public static Diagnostico getDiagnosticoByNombre(String diagnostico)
	{
		return DiagnosticosManager.getByName(diagnostico);
	}

	public static Collection<Observacion> getAllObservaciones()
	{
		return ObservacionesManager.getAll();
	}

	public static void SaveInforme(Informe informe)
	{
		InformesManager.Save(informe);		
	}

	public static Collection<Informe> getAllInformes()
	{
		return InformesManager.getAll();
	}

	public static Collection<Informe> getInformesByObservaciones(
			Collection<Observacion> obs)
	{
		return InformesManager.getByObservaciones(obs);
	}
}
